// pages/blood_record/blood_record.js
const nav_img_black = 'https://witty6.oss-cn-beijing.aliyuncs.com/demo/64241692603437_.pic.jpg'
Page({
  data: {
    checked: true,
    nav_show:true,
    nav_title:'秉华健康-健康数据管家',
    fontColor:'#333333',
    nav_img:nav_img_black,
    list:[
      {id:'0',date:'2023-08-02',time:'20:12',contract:'199',diastole:'199',heart:'199',invalid:false},
      {id:'1',date:'2023-08-03',time:'00:12',contract:'299',diastole:'299',heart:'299',invalid:true},
    ]
  },
  onChange(event) {
    // 需要手动对 checked 状态进行更新
    let choseChange = "list[" + event.currentTarget.id + "].invalid"
    this.setData({ 
      [choseChange]:event.detail
    });
  },
});
